﻿<%--<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Models.TrainingsSchedules>" %>--%>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.TrainingsSchedules>" %>
<%@ Import Namespace="CRM.Resourses" %>

<table>
    <tr>
        <th>
            <%:Html.DevExpress().Label(settings =>
                {
                    settings.ControlStyle.CssClass = "lable";
                    settings.Text = "Дата";
                    settings.Width = 120;
                }).GetHtml() %>
        </th>
        <th>
            <%:Html.DevExpress().Label(settings =>
                {
                    settings.ControlStyle.CssClass = "lable";
                    settings.Text = "Рубрика";
                    settings.Width = 120;
                }).GetHtml() %>
        </th>
        <th>
            <%:Html.DevExpress().Label(settings =>
                {
                    settings.ControlStyle.CssClass = "lable";
                    settings.Text = "Курс";
                    settings.Width = 120;
                }).GetHtml() %>
        </th>
        <th>
            <%:Html.DevExpress().Label(settings =>
                {
                    settings.ControlStyle.CssClass = "lable";
                    settings.Text = "Город";
                    settings.Width = 120;
                }).GetHtml() %>
        </th>

    </tr>
    <tr>
        <td>
            <%:Html.DevExpress().DateEdit(settings =>
                {
                    settings.Name = "PlannedDate";
                    settings.Properties.DisplayFormatString = "D";
                    settings.Enabled = false;
                    settings.ReadOnly = true;
                    settings.Width = 120;
                }).Bind(Model.PlannedDate).GetHtml() %>
        </td>
        <td>
            <%:Html.DevExpress().TextBox( settings => 
                    {
                        settings.Name = "TrainingsCourses.Rubrics.NameRu";
                        settings.Width = 120;
                        settings.Enabled = false;
                    }).Bind(Model.TrainingsCourses.Rubrics.NameRu).GetHtml()%>
        </td>
        <td>
            <%:Html.DevExpress().TextBox( settings => 
                    {
                        settings.Name = "TrainingsCourses.Name";
                        settings.Width = 120;
                        settings.Enabled = false;
                    }).Bind(Model.TrainingsCourses.Name).GetHtml()%>
        </td>
        <td>
            <%:Html.DevExpress().TextBox( settings => 
                    {
                        settings.Name = "TrainingsPlaces.TrainingsCities.TrainingsCityName";
                        settings.Width = 120;
                        settings.Enabled = false;
                    }).Bind(Model.TrainingsPlaces.TrainingsCities.TrainingsCityName).GetHtml()%>
        </td>
    </tr>
</table>
    
    
    
    
    
    
    
    
    
    
    
    <%--<table style="padding: 10px; margin: 10px; ">
                  <tr class="customerBorder">
                        <td style="padding-left: 20px;">
                            
                        </td> 
                        <td style="border: 1px solid #C8C8C8; width: 150px;">
                            <%: Html.DisplayFor(model => model.PlannedDate) %>
                        </td>
                        
                        <th style="padding-left: 20px;"><%:Html.DevExpress().Label(
                                            settings =>
                                                {
                                                    settings.ControlStyle.CssClass = "lable";
                                                    settings.Text = "Дата";
                                                    settings.Width = 125;
                                                }).GetHtml() %></th><td style=" border: 1px solid #C8C8C8; width: 150px;">4</td>
                    </tr>
                     <tr class="customerBorder">
                        <th>5</th><td style="border: 1px solid #C8C8C8;">6</td><th style="padding-left: 20px;">7</th><td style="border: 1px solid #C8C8C8;">8</td>
                    </tr >
                    <tr class="customerBorder">
                        <th>9</th><td style="border: 1px solid #C8C8C8;">10</td><th style="padding-left: 20px;">11</th><td style="border: 1px solid #C8C8C8;">12</td>
                    </tr>
                      <tr>
                        <th></th><td></td>
                        <th style="padding-left: 20px;">123</th>
                                               
                        <td id="checkbox"></td>
                    </tr>   
                </table>--%>